#include <iostream>
#include <string>
#include <algorithm>
int main() {
    std::string binary = "10011100";
    std::string octal = "74";
    std::string hex = "AF";

    int decimalFromBinary = std::stoi(binary, nullptr, 2);
    int decimalFromOctal = std::stoi(octal, nullptr, 8);
    int decimalFromHex = std::stoi(hex, nullptr, 16);

    std::cout << "Decimal from Binary: " << decimalFromBinary << std::endl;
    std::cout << "Decimal from Octal: " << decimalFromOctal << std::endl;
    std::cout << "Decimal from Hex: " << decimalFromHex << std::endl;

    return 0;
}
